package com.bdqn.petmalldemo.common;

import java.math.BigDecimal;

/**
 * @Author:彭俊
 * @description:系统常量类
 * @date:2020/2/141036
 */
public class SystemConstants {
    /** MD5加密盐值(用于防止MD5反加密破解) **/
    public static final String MD5_SLAT = "!ketAI!@#kIvaL~123.<)*&*(91237/}";
    /**
     * 分页查询每页记录数
     */
    public static final Integer PAGE_SIZE=10;
    /**
     * 运费
     */
    public static final BigDecimal FREIGHT=BigDecimal.valueOf(12);
    /**用户角色**/
    public interface USER_ROLE{
        Integer GENERAL=1; //普通用户
        Integer ADMIN=2;   //管理员
    }
    /**用户状态*/
    public interface USER_STATUS{
        Integer ENABLE=1;
        Integer DISABLED=2;
    }
    /**订单状态*/
    public interface ORDER_STATUS{
        //未付款
        Integer UNPAID=1;
        //已付款
        Integer PAID=2;
        //已超时
        Integer TIME_OUT=3;
        //部分发货
        Integer PARTIAL_DELIVERY=4;
        //全部发货
        Integer SHIP_ALL=5;
        //已完成
        Integer END=6;
        //已关闭
        Integer CLOSED=7;
        //已取消
        Integer CANCEL=0;
    }
    /**发货状态*/
    public interface SEND_STATUS{
        //未付款
        Integer UNPAID=0;
        //已付款
        Integer UNSEND=1;
        //已发货
        Integer SENDED=2;
        //已完成
        Integer OVER=3;
    }
    /**商品状态*/
    public interface PRODUCT_STATUS{
        Integer DELETE=0;
        Integer PENDING=1;
        Integer UNDER_REVIEW=2;
        Integer REVIEW_REJECTED=3;
        Integer EXAMINATION_PASSED=4;
        Integer TAKE_OFF=5;
        Integer SHELVES=6;
    }
}
